<?php 
function CheckMainAdmin() { 
	if ($_SESSION["AdminUsername"] == "") {
		echo "<meta http-equiv=\"refresh\" content=\"0;URL=login.php\">";
		exit();
	}
}
?>